package com.zmzncs.lmtc.module.shop.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.shop.pojo.shop_order.OrderPaymentForm;
import com.zmzncs.lmtc.module.shop.pojo.shop_order.ShopOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.shop.pojo.shop_order.ShopOrderDTO;
import com.zmzncs.lmtc.module.shop.pojo.shop_order.ShopOrderSearchForm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 商户-订单 Mapper 接口
 * </p>
 *
 * @author 高博文
 * @since 2021-05-20
 */
@Repository
@Mapper
public interface ShopOrderDao extends BaseMapper<ShopOrder> {

    /** 分页 */
    IPage<ShopOrderDTO> page(Page page,@Param("form") ShopOrderSearchForm form);

    /**详情*/
    ShopOrderDTO getById(Long id);

    /**根据用户优惠券Id查询订单信息*/
    ShopOrderDTO getOrderInfoByTicketId(Long custTicketId);

    /**查询打款信息*/
    IPage<ShopOrderDTO> getPayment(Page page,@Param("form") OrderPaymentForm form);

}
